var http = require('http');

var listenProt = 80 ;

http.createServer(myServer).listen(listenProt);

function myServer(request, response) {
    //发送Http 头部
    //HTTP 状态200
    //内容类型：text/plain

    response.writeHead(200, {'Content-Type':'text/plain'});
    response.end("Hello World!");

}

1
//print('Server running at http://127.0.0.1:80/');
